package cn.agiledata.bank.acctlimit.dao;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

import cn.agiledata.bank.common.dao.AccountTemplateInter;
import cn.agiledata.bank.common.util.PageBean;
import cn.agiledata.bank.hibernateBean.Account;
import cn.agiledata.bank.hibernateBean.AccountBank;
import cn.agiledata.bank.hibernateBean.AccountHis;

import cn.agiledata.bank.hibernateBean.PeerInnerAccount;
import cn.agiledata.bank.hibernateBean.SubAccount;
import cn.agiledata.bank.myspace.bean.AccountHisQueryDetailBean;
import com.vnv.infrastructure.logic.IPBHibernate3BaseMgr;

public class AcctLimitDao extends IPBHibernate3BaseMgr {

    public List getAcctLimitByDefault(String accountGrading){
    	String hql = "from Acctlimit al where al.limitType = '1' and al.grading.id = "+accountGrading;
        return this.getHibernateTemplate().find(hql);
    }
    public List getAcctLimitByAccount(String accountId){
    	String hql = "from Acctlimit al where al.limitType = '2' and al.accountSeq = "+accountId;
    	return this.getHibernateTemplate().find(hql);
    }
    
		
	

}
